package cn.iocoder.yudao.module.research.controller.admin.alert.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 告警分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AlertPageReqVO extends PageParam {

    @Schema(description = "XFF")
    private String xff;

    @Schema(description = "url", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "告警时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] alertTime;

    @Schema(description = "威胁名称", example = "李四")
    private String threatName;

    @Schema(description = "威胁等级")
    private String threatLevel;

    @Schema(description = "方向")
    private String direction;

    @Schema(description = "源IP")
    private String sourceIp;

    @Schema(description = "源IPlong")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] sourceIpLong;

    @Schema(description = "目的IP")
    private String destIp;

    @Schema(description = "目的IPlong")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] destIpLong;

    @Schema(description = "状态码")
    private String statusCode;

    @Schema(description = "状态（0正常 1停用）", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "syslog ID", example = "27140")
    private Long syslogId;

    @Schema(description = "威胁类型", example = "1")
    private String attackType;

    @Schema(description = "源端口")
    private Integer sourcePort;

    @Schema(description = "目的端口")
    private Integer destPort;

    @Schema(description = "分析步骤")
    private String analyzeStep;

    @Schema(description = "是否是攻击（0否 1是）", example = "2")
    private Integer attackStatus;

}